﻿using SqlSugar;
using System;

namespace Model
{
    /// <summary>
    /// trans_flow 表实体类
    /// </summary>
    [SugarTable("trans_flow")]
    public class TransFlow
    {
        /// <summary>
        /// 编号
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "id")]
        public long Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        [SugarColumn(ColumnName = "user_id")]
        public long UserId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        [SugarColumn(ColumnName = "user_name")]
        public string UserName { get; set; }

        /// <summary>
        /// 交易单号
        /// </summary>
        [SugarColumn(ColumnName = "trans_no")]
        public string TransNo { get; set; }

        /// <summary>
        /// 交易类型（1：充值 2：提现 3：投标 4：投资回款 ...）
        /// </summary>
        [SugarColumn(ColumnName = "trans_type")]
        public byte TransType { get; set; }

        /// <summary>
        /// 交易类型名称
        /// </summary>
        [SugarColumn(ColumnName = "trans_type_name")]
        public string TransTypeName { get; set; }

        /// <summary>
        /// 交易金额
        /// </summary>
        [SugarColumn(ColumnName = "trans_amount")]
        public decimal? TransAmount { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "memo")]
        public string Memo { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "create_time")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        [SugarColumn(ColumnName = "update_time")]
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 逻辑删除(1:已删除，0:未删除)
        /// </summary>
        [SugarColumn(ColumnName = "is_deleted")]
        public byte IsDeleted { get; set; }

    }
}
